package com.itheima.a01static;

public class StudentTest {
    public static void main(String[] args) {
        Student.teacherName="阿亮老师";
        Student s1 = new Student("张三", 18,"男");
        //s1.teacherName="阿玮老师";      //也可以Student.teacherName="阿玮老师";赋值
        s1.study();
        s1.show();

        Student s2 = new Student("李四", 20,"女");
        s2.study();
        s2.show();
    }
}
